    <div class="headingBox">
    	<div class="successfull" style="display:<?php echo ($this->session->flashdata('userMesg') ? 'block' : 'none') ?> ">
                <?php echo $this->session->flashdata('userMesg'); ?>  
            </div>
        <div class="FloatLeft"><img alt="" src="<?php echo imageUrl(); ?>red_leftRound.jpg" height="24" width="5"></div>
        <div style="width:992px;" class="red_midRound"><?php echo $page_heading; ?></div>
        <div class="FloatLeft"><img alt="" src="<?php echo imageUrl(); ?>red_rightRound.jpg" height="24" width="5"></div>
    </div>
        <div>
        <?php 
			$id = (isset($id) && $id > 0  ) ? intval($id) : 0;
		?>
        <form method="post" action="<?php echo base_url().$this->uri->segment(1); ?>/save<?php echo ($id > 0 ) ? "/$id" : ''; ?>">
            <input name="sbmt" id="sbmt" value="1" type="hidden">
           
            <table class="subContentTable" cellpadding="2" cellspacing="5" width="100%">
                <tbody>
                <tr>
                    <td width="20%"><strong>Skill<span class="required">*</span>:</strong></td>
                    <td width="35%">
                    <?php
						$skills = set_value('skill_id', isset($skill_id) ? $skill_id : '' );
						$skill_selected_attribule = ($id>0) ? "disabled='disabled'" : '';
						echo create_select("skill_id", $all_skills, $skills, array('value'=>'id', 'label'=>'name'), $skill_selected_attribule );
						echo form_error('skill_id', '<div class="errorMsg_1" style="">', '</div>'); 
						 
					?>
                      
                    </td>
                    <td width="20%"><strong>Primary ACD Server<span class="required">*</span>:</strong></td>
                    <td width="35%">
                         <?php
					   $acd_servers = get_all_acd_servers();
					   $primary_server_id = set_value('primary_server_id', isset($primary_server_id) ? $primary_server_id : '' );
	                   echo create_select("primary_server_id", $acd_servers, $primary_server_id, array('value'=>'id', 'label'=>'server_ip') );
					   echo form_error('primary_server_id', '<div class="errorMsg_1" style="">', '</div>'); ?>
                    </td>
                </tr>
                 
                 <tr>
                    <td width="20%"><strong>Second ACD Server<span class="required">*</span>:</strong></td>
                    <td width="35%">
                         <?php
					   $acd_servers = get_all_acd_servers();
					   $secondary_server_id = set_value('secondary_server_id', isset($secondary_server_id) ? $secondary_server_id : '' );
	                   echo create_select("secondary_server_id", $acd_servers, $secondary_server_id, array('value'=>'id', 'label'=>'server_ip') );
					   echo form_error('secondary_server_id', '<div class="errorMsg_1" style="">', '</div>'); ?>
                    </td>
                    <td width="20%"></td>
                    <td width="35%"></td>
                </tr>
				<tr bgcolor="#fff1d5">
                    <td colspan="4" align="left">
                        <input value="" class="backBtn" onclick="location.href='<?php echo base_url().$this->uri->segment(1); ?>';" type="button">
                        <input value="" class="submitBtn" type="submit">
                    </td>
                </tr>
            </tbody></table>
        </form> 
    </div>
 